package com.tao.YanMoDesignPattern.observer.case2_pull_push;

/**
 * @Author Mi_Tao
 * @Date 2023/7/23
 * @Description 推模型的观察者
 * @Version 1.0
 **/
public class Reader implements Observer{

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // 读者的姓名
    private String name;
    @Override
    public void update(String content) {
        System.out.println(name + "收到报纸了，内容是："+content);
    }
}
